package xrz.com.jr.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.joanzapata.android.BaseAdapterHelper;
import com.joanzapata.android.QuickAdapter;

import xrz.com.jr.R;
import xrz.com.jr.entity.NomalModel;
import xrz.com.jr.utils.ImageUtils;

/**
 * Created by Administrator on 2016/7/28.
 */
public class Adapter_Nomal extends QuickAdapter<NomalModel>{
    @Override
    protected void convert(BaseAdapterHelper helper, NomalModel item) {
        ImageView imageView = helper.getView(R.id.imageview);
        ImageUtils.loadimg(imageView, item.getIcon());
        helper.setText(R.id.textview, item.getName());
    }

    public Adapter_Nomal(Context context) {
        super(context, R.layout.item_nomalmodel);
    }
}
